package interceptors;

import java.util.Set;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;

public class MethodFirstceptor extends MethodFilterInterceptor {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected String doIntercept(ActionInvocation aInvocation) throws Exception {
		System.out.println("进入方法拦截器");
		String str = aInvocation.invoke();
		System.out.println("退出方法拦截器");
		return str;
	}

	@Override
	public Set<String> getExcludeMethodsSet() {
		// TODO Auto-generated method stub
		return super.getExcludeMethodsSet();
	}

	@Override
	public Set<String> getIncludeMethodsSet() {
		// TODO Auto-generated method stub
		return super.getIncludeMethodsSet();
	}
}